package com.moyu.shopapp.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "cart")
public class Cart {
  @TableId(value = "cart_id",type = IdType.AUTO)
  private Integer cartId;
  private Integer userId;
  private Integer goodsId;
  private Integer quantity;
  private java.sql.Timestamp createTime;
  @TableField(exist = false) // 不是数据库的字段，用于关联查询
  private User user;

  @TableField(exist = false) // 不是数据库的字段，用于关联查询
  private Goods goods;
}
